<%@ page import="fleet_management.Maintenance"%>



<div
	class="fieldcontain ${hasErrors(bean: maintenanceInstance, field: 'vehicleNumber', 'error')} required">
	<label for="vehicleNumber"> <g:message
			code="maintenance.vehicleNumber.label" default="Vehicle Number" /> <span
		class="required-indicator">*</span>
	</label>
	<g:if test="${maintenanceInstance?.vehicleNumber}">
		<g:textField name="vehicleNumber"
			value="${maintenanceInstance?.vehicleNumber}" disabled="disabled" />
	</g:if>
	<g:select name="vehicleNumber" from="${vehicleList}"
		value="${maintenanceInstance?.vehicleNumber}"
		noSelection="['':'Select vehicle number']" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: maintenanceInstance, field: 'causeOfMaintenance', 'error')} required">
	<label for="causeOfMaintenance"> <g:message
			code="maintenance.causeOfMaintenance.label"
			default="Cause Of Maintenance" /> <span class="required-indicator">*</span>
	</label>
	<g:textField name="causeOfMaintenance" required=""
		value="${maintenanceInstance?.causeOfMaintenance}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: maintenanceInstance, field: 'typeOfMaintenance', 'error')} required">
	<label for="typeOfMaintenance"> <g:message
			code="maintenance.typeOfMaintenance.label"
			default="Type Of Maintenance" /> <span class="required-indicator">*</span>
	</label>
	<g:textArea name="typeOfMaintenance" cols="40" rows="5"
		maxlength="1000" required=""
		value="${maintenanceInstance?.typeOfMaintenance}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: maintenanceInstance, field: 'totalCost', 'error')} required">
	<label for="totalCost"> <g:message
			code="maintenance.totalCost.label" default="Total Cost" /> <span
		class="required-indicator">*</span>
	</label>
	<g:field type="number" name="totalCost" required=""
		value="${fieldValue(bean: maintenanceInstance, field: 'totalCost')}" />
</div>

